﻿using System;

namespace enyo
{
    public static class InputType
    {
        [EvalAtCompile]
        public const string EMail = "email";

        [EvalAtCompile]
        public const string Url = "url";
    }

    public static class AutoKeyModifier
    {
        [EvalAtCompile]
        public const string NumLock = "num-lock";

        [EvalAtCompile]
        public const string CapsLock = "caps-lock";

        [EvalAtCompile]
        public const string ShiftLock = "shift-lock";

        [EvalAtCompile]
        public const string ShiftSingle = "shift-single";

        [EvalAtCompile]
        public const string NumSingle = "num-single";
    }

    public static class AutoCapitalize
    {
        [EvalAtCompile]
        public const string Sentence = "sentence";

        [EvalAtCompile]
        public const string Title = "title";

        [EvalAtCompile]
        public const string Lowercase = "lowercase";
    }

    public class Input : enyo.Control
    {
        public string hint;
        public string value;
        public bool spellcheck;
        public bool autocorrect;
        public bool autoLinking;
        public bool autoEmoticons;
        public bool changeOnInput;
        public bool autoWordComplete;

        public EventHandler onchange;
        public EventHandler onkeypress;
        public EventHandler onblur;
        public EventHandler onfocus;

        public string GetValue()
        {
            return value;
        }

        public void SetValue(string val)
        {
        }
    }
}
